package edu.uow.devdocs
/**
 * The System entity.
 *
 * @author    
 *
 *
 */
class System {
	static auditable = true
    static mapping = {
         table 'SYSTEM'
         // version is set to false, because this isn't available by default for legacy databases
         version false
         id column:'SYSTEM_ID'
		 id generator: 'sequence', params:[sequence:'SYSTEM_SEQ']
		 sort name:'ASC'
    }
    String name
    Date lastUpdated
	
	static searchable = [only: ['id','name']]

    static constraints = {
        name(size: 0..255)
        lastUpdated(nullable: true)
    }
    String toString() {
        return "${name}" 
    }
}
